<!DOCTYPE html>
<HTML>
<HEAD>
	<title>Step 8</title>
    <?= $this->render("label/tpl1-header.phtml"); ?>
</HEAD>
<BODY>
  <div class="content">
    <div class="car-wrap">
      <h1>Your valuation</h1>
	  <? if ($this->pleaseContact): ?>
	    <div class="more-car-details">
		  <span class="error">Sorry could not estimate the value of your car. Please contact our office to get the estimation: <a href="call:555-555-5123">555-555-5123</a></span>
	    </div>
	  <? else: ?>
	    <form method="post" onSubmit="return _CAR.validateStep8();">
	      <input type="hidden" name="step" value="9">
	      <input type="hidden" name="reg" value="<?= $_POST['reg'] ?>">
	      <input type="hidden" name="prev_data" value="<?= $this->prev_data ?>">
	      <input type="hidden" name="ap_date" id="ap_date" value="">
	      <input type="hidden" name="valRowId" id="valRowId" value="<?= $this->valRow->id ?>">

	      <div class="two-col"> 
	        <div class="more-car-details">
	      	<div class="valuation-price"><?= $this->valuation ?></div>
	      	<div class="valuation-desc">You can also redeem the value of your road tax license</div>
	        </div>
	      </div>
	      <div class="two-col">
	        <div class="more-car-details">
  	      	<label>Choose an appointment to sell now</label>
	      	<div type="text" id="appointment_date" value="" style="width:200px;"></div>
	        </div>
	      </div>
	      <div class"clear"></div>
	      <div class="text-align:right">
	        <input type="submit" value="Submit" class="continue-button" style="margin-bottom:12px;margin-right:10px;float:right">
	      </div>
	    </form>
	  <? endif; ?>
    </div>
  </div>
  <script>
  $(function () {
    $("#appointment_date").datepicker({ minDate: 2 });  
  }); 
  </script>
</BODY>
</HTML>

